import request from '@/utils/request'

// 查询告警事件历史列表
export function listHistory_event_record(query) {
  return request({
    url: '/scada/history_event_record/list',
    method: 'get',
    params: query
  })
}

// 查询告警事件历史详细
export function getHistory_event_record(id) {
  return request({
    url: '/scada/history_event_record/' + id,
    method: 'get'
  })
}

// 新增告警事件历史
export function addHistory_event_record(data) {
  return request({
    url: '/scada/history_event_record',
    method: 'post',
    data: data
  })
}

// 修改告警事件历史
export function updateHistory_event_record(data) {
  return request({
    url: '/scada/history_event_record',
    method: 'put',
    data: data
  })
}

// 删除告警事件历史
export function delHistory_event_record(id) {
  return request({
    url: '/scada/history_event_record/' + id,
    method: 'delete'
  })
}
